package com.cspm.ahjy.bc.office.word.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * 文档中的正文，对应XML中的<w:body>标签
 * @author ServerZhang
 * @date 2017年9月27日
 */
public class MSBody {
	
	//背景色
	private String bgColor = null;
	
	//页边距
	private Integer top = 0;//页边距上
	private Integer bottom = 0;//页边距下
	private Integer left = 0;//页边距左
	private Integer right = 0;//页边距右
	private Integer gutter = 0;//装订线
	private String gutterLocation= "这个好像获取不到";//装订线位置
	private String orient = "";//默认为纵向（空），横向（landscape）
	
	//纸张
	private MSPaperSize paperSize = null;//纸张大小
	
	//版式
	private Integer header = 0;//页眉
	private Integer footer = 0;//页脚
	
	//页眉和页脚（仅解析第一个段落标签中的第一个文字标签）
	private MSFont headerFont = null;
	private MSFont footerFont = null;
	
	//水印
	private MSFont watermark = null;

	//页面边框
	private MSBorder topBorder = null;
	private MSBorder leftBorder = null;
	private MSBorder bottomBorder = null;
	private MSBorder rightBorder = null;
	
	//页面边框属性，仅当上下左右一致进才赋值
	private String boderType = null;
	private String boderColor = null;
	private Integer boderWidth = null;
	private Boolean boderShadow = null;
	
	private List<MSParagraph> paragraphs = new ArrayList<MSParagraph>();//包含的所有段落
	
	private List<MSTable> tables = new ArrayList<MSTable>();//所有表格
	
	
	public void addParagraph(List<MSParagraph> paragraphs){
		this.paragraphs.addAll(paragraphs);
	}

	
	public Boolean getBoderShadow() {
		return boderShadow;
	}


	public void setBoderShadow(Boolean boderShadow) {
		this.boderShadow = boderShadow;
	}


	public String getBgColor() {
		return bgColor;
	}


	public void setBgColor(String bgColor) {
		this.bgColor = bgColor;
	}


	public String getBoderType() {
		return boderType;
	}


	public void setBoderType(String boderType) {
		this.boderType = boderType;
	}


	public String getBoderColor() {
		return boderColor;
	}


	public void setBoderColor(String boderColor) {
		this.boderColor = boderColor;
	}

	public Integer getBoderWidth() {
		return boderWidth;
	}


	public void setBoderWidth(Integer boderWidth) {
		this.boderWidth = boderWidth;
	}


	public MSFont getWatermark() {
		return watermark;
	}


	public void setWatermark(MSFont watermark) {
		this.watermark = watermark;
	}


	public List<MSTable> getTables() {
		return tables;
	}


	public void setTables(List<MSTable> tables) {
		this.tables = tables;
	}


	public List<MSParagraph> getParagraphs() {
		return paragraphs;
	}

	public void setParagraphs(List<MSParagraph> paragraphs) {
		this.paragraphs = paragraphs;
	}

	public Integer getTop() {
		return top;
	}

	public void setTop(Integer top) {
		this.top = top;
	}

	public Integer getBottom() {
		return bottom;
	}

	public void setBottom(Integer bottom) {
		this.bottom = bottom;
	}

	public Integer getLeft() {
		return left;
	}

	public void setLeft(Integer left) {
		this.left = left;
	}

	public Integer getRight() {
		return right;
	}

	public void setRight(Integer right) {
		this.right = right;
	}

	public Integer getGutter() {
		return gutter;
	}

	public void setGutter(Integer gutter) {
		this.gutter = gutter;
	}

	public String getGutterLocation() {
		return gutterLocation;
	}

	public void setGutterLocation(String gutterLocation) {
		this.gutterLocation = gutterLocation;
	}

	public String getOrient() {
		return orient;
	}

	public void setOrient(String orient) {
		this.orient = orient;
	}

	public MSPaperSize getPaperSize() {
		return paperSize;
	}

	public void setPaperSize(MSPaperSize paperSize) {
		this.paperSize = paperSize;
	}

	public Integer getHeader() {
		return header;
	}

	public void setHeader(Integer header) {
		this.header = header;
	}

	public Integer getFooter() {
		return footer;
	}

	public void setFooter(Integer footer) {
		this.footer = footer;
	}

	public MSFont getHeaderFont() {
		return headerFont;
	}

	public void setHeaderFont(MSFont headerFont) {
		this.headerFont = headerFont;
	}

	public MSFont getFooterFont() {
		return footerFont;
	}

	public void setFooterFont(MSFont footerFont) {
		this.footerFont = footerFont;
	}

	public MSBorder getTopBorder() {
		return topBorder;
	}

	public void setTopBorder(MSBorder topBorder) {
		this.topBorder = topBorder;
	}

	public MSBorder getLeftBorder() {
		return leftBorder;
	}

	public void setLeftBorder(MSBorder leftBorder) {
		this.leftBorder = leftBorder;
	}

	public MSBorder getBottomBorder() {
		return bottomBorder;
	}

	public void setBottomBorder(MSBorder bottomBorder) {
		this.bottomBorder = bottomBorder;
	}

	public MSBorder getRightBorder() {
		return rightBorder;
	}

	public void setRightBorder(MSBorder rightBorder) {
		this.rightBorder = rightBorder;
	}
	
	
	
	
}
